package com.ysx.teacher.day20210907;

public class Student {

    /**
     * 年龄
     */
    public int age;

    private int salary;

    /*
     * 角色
     */
    private String role;
    private String name;

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "age=" + age +
                ", salary=" + salary +
                ", role='" + role + '\'' +
                ", name='" + name + '\'' +
                '}';
    }
}
